# import os


# def get_project_root():
#     # 初始化当前文件的路径
#     path = os.path.abspath(__file__)
#     # 循环直到找到根目录（即不再有上级目录）
#     path = os.path.dirname(path)
#     path = os.path.dirname(path)
#     return path
#
#
# # 使用函数获取根目录路径
# project_root = get_project_root()
# print(project_root)

base_url = ''
# case_path = project_root + '/testcases'
# extract_path = project_root + '/exchange.yaml'
pytest_ini_path = 'config/pytest.ini'
case_path = 'testcases'
extract_path = 'data/exchange.yaml'
id_path = 'data/id.yaml'

db_host = "101.34.221.219"  # IP
db_port = 13306  # 端口
db_user = "dev"  # 用户名
db_password = "dev_My_ShopPx"  # 密码
db_database = "beifan_db"  # 库名

allure_parametrize = None
allure_epic = "xxx项目接口自动化测试"
allure_feature = None
allure_story = None

# public_pem = project_root + '/data/public.pem'
# private_pem = project_root + '/data/private.pem'
public_pem = 'data/public.pem'
private_pem = 'data/private.pem'
